#ifndef THRESHOLDFORM_H
#define THRESHOLDFORM_H

#include <QWidget>

namespace Ui {
class ThresholdForm;
}

class ThresholdForm : public QWidget
{
    Q_OBJECT

public:
    explicit ThresholdForm(QWidget *parent = nullptr);
    ~ThresholdForm();

    void UpdateShowType(int type=0);

private:
    Ui::ThresholdForm *ui;

protected:
    virtual void paintEvent(QPaintEvent*event) override;

private slots:
    void onDoubleSpinBoxValueChanged(double value);
    void onPushButtonLevel1Clicked(bool checked);
    void onPushButtonLevel2Clicked(bool checked);
    void onPushButtonLevel3Clicked(bool checked);
    void on_toolButton_contractExpand_clicked(bool checked);
};

#endif // THRESHOLDFORM_H
